Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update chokidar #464

Merged
merged 2 commits into from
Oct 18, 2024
Merged

Update chokidar #464

merged 2 commits into from
Oct 18, 2024

Conversation

greggman
Copy link
Collaborator

@greggman greggman commented Oct 16, 2024

Note: This is dependent on #463

Update chokidar to v4

chokidar v3 is no longer supported. v4 requires node 20 so

  1. Added a check for v20+

  2. Make script exit if any spawn gets an error.

    This required watching for processes to exit and
    killing the other processes.

  3. Update to use glob as chokidar v4 no longer does it

Also fixed a minor warning in sample/utis.ts

sample/util.ts Show resolved Hide resolved
build/tools/serve.js Outdated Show resolved Hide resolved
chokidar v3 is no longer supported. v4 requires node 20 so

1. Added a check for v20+

2. Make script exit if any spawn gets an error.

   This required watching for processes to exit and
   killing the other processes.

3. Update to use glob as chokidar v4 no longer does it

Also fixed a minor warning in sample/utis.ts
@greggman greggman force-pushed the update-chokidar branch 2 times, most recently from eeb2bd8 to 188c005 Compare October 17, 2024 01:13
sample/util.ts Show resolved Hide resolved
console.log(cmd, 'exited with code:', code);
spawns.forEach((s) => s.kill());
process.exit(code);
spawns.splice(spawns.indexOf(s), 1);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: maybe spawns could be a Set? but not important

@greggman greggman enabled auto-merge (squash) October 18, 2024 00:59
@greggman greggman merged commit 16dd65c into webgpu:main Oct 18, 2024
1 check passed
@greggman greggman deleted the update-chokidar branch October 18, 2024 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants